package org.wlw.user;

public class User {
    private String username;
    private String nickname;
    private String password;
    private String gender;
    private int age;

    public User() {

    }

    public User(String username, String nickname, String password, String gender, int age) {
        this.username = username;
        this.nickname = nickname;
        this.password = password;
        this.gender = gender;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "用户名:"+this.getUsername()+"\t\t密码:"
                +this.getPassword()+"\t\t用户昵称:"+this.getNickname()+"\t\t性别:"
                +this.getGender()+"\t\t年龄:"+this.getAge();
    }
}
